﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>超市后台管理系统-总部</title>
    <link href="/static/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet"/>
    <link href="/static/assets/css/themify-icons.css" rel="stylesheet">
    <link href="/static/assets/css/jsgrid/jsgrid-theme.min.css" rel="stylesheet"/>
    <link href="/static/assets/css/jsgrid/jsgrid.min.css" type="text/css" rel="stylesheet"/>
    <link href="/static/assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/assets/css/style.css" rel="stylesheet">
    <!-- Bootstrap Styles-->
    <link href="/static/assets/css/bootstrap.css" rel="stylesheet"/>
    <!-- FontAwesome Styles-->
    <link href="/static/assets/css/font-awesome.css" rel="stylesheet"/>
    <!-- Morris Chart Styles-->
    <link href="/static/assets/js/morris/morris-0.4.3.min.css" rel="stylesheet"/>
    <!-- Custom Styles-->
    <link href="/static/assets/css/custom-styles.css" rel="stylesheet"/>
    <!-- Google Fonts-->
    <link href='http://fonts.useso.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
    <!-- TABLE STYLES-->

</head>

<body>
<div id="wrapper">
    <nav class="navbar navbar-default top-navbar" role="navigation">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand public-header" href="index.html">超市后台管理系统-总部</a>
            </div>

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li class="divider"></li>
                        <li><a href="login.html"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
        </nav>
        <!--/. NAV TOP  -->
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <!--
                <ul class="nav" id="main-menu">

                    <li>
                        <a class="active-menu" href="shop.html"><i class="fa fa-dashboard"></i> 门店管理</a>
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-sitemap"></i>商品管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="commodity.html">商品汇总信息</a>
                            </li>
                            <li>
                                <a href="commodity-kind.html">商品业种管理</a>
                            </li>
                            <li>
                                <a href="commodity-brand.html">商品品牌管理</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="provider.html"><i class="fa fa-bar-chart-o"></i> 供应商汇总信息</a>
                    </li>
                    <li>
                        <a href="contract.html"><i class="fa fa-qrcode"></i> 合同汇总信息</a>
                    </li>
                    
                    <li>
                        <a href="sale.html"><i class="fa fa-table"></i> 销售汇总信息</a>
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-sitemap"></i> 会员管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="vip">会员信息</a>
                            </li>
                            <li>
                                <a href="vipconsumption.html">会员消费明细</a>
                            </li>
                        </ul>
                    </li>

                    <li>
                        <a href="staff.html"><i class="fa fa-fw fa-file"></i> 职员管理</a>
                    </li>
                </ul>
                -->
            </div>
        </nav>
        <!-- /. NAV SIDE  -->
        
    <div id="page-wrapper">
        <div id="page-inner">

            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-header">
                        商品品牌信息 <small>商品品牌基本信息</small>
                    </h1>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="dataTables_filter" style="float:left;">
                        <label class="cus-label"><input type="input" class="form-control input-sm" ></label>
                        <button id="searchbutton" type="button" class="btn btn-primary cus-button">搜索</button>
                        <button id="resetbutton" type="button" class="btn btn-default cus-button">重置</button>
                    </div>
                </div>
            </div>
            <!-- /. ROW  -->
                <div class="row">
                    <a href="/dept/add" class="add-button">添加部门信息</a>
                </div>
                <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                             Brand Information
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th>编号</th>
                                            <th>部门</th>

                                            <!--<th>街区</th>
                                            <th>地址</th>
                                            -->

                                            <th>描述</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <!--<tr class="odd gradeX">
                                            <td>01</td>
                                            <td>长春1店</td>
                                            <td>长春</td>
                                            <td class="center">前进大街sdfsfsdfsf</td>
                                            <td class="center">
                                                <a href="shopUpdate.html"><img src="/static/assets/img/xiugai.png" alt="修改" title="修改"></a>
                                                <a href="#" class="removeProvider"><img src="/static/assets/img/schu.png" alt="删除" title="删除"></a>
                                            </td>
                                        </tr>-->
                                        {% for dept in depts%}
                                            <tr class="odd gradeX">
                                            <td lass="center">{{dept.id}}</td>
                                            <td lass="center">{{ dept.name }}</td>
                                            <td lass="center">{{ dept.description }}</td>
                                            <td class="center">
                                                <a href="/dept/update/{{ dept.id }}"><img src="/static/assets/img/xiugai.png" alt="修改" title="修改"></a>
                                                <a href="/dept/delete/{{ dept.id }}" class="removeProvider" deptid="{{ dept.id }}"><img src="/static/assets/img/schu.png" alt="删除" title="删除"></a>
                                            </td>
                                        </tr>
                                        {% endfor %}



                                    </tbody>
                                </table>
                            </div>

                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>

            <!-- /. ROW  -->
            <footer><p>Copyright &copy; 2016.Company name All rights reserved.<a target="_blank"
                                                                                 href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
            </p></footer>
        </div>
        <!-- /. PAGE INNER  -->
    </div>
    <!-- /. PAGE WRAPPER  -->
</div>
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="/static/assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="/static/assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="/static/assets/js/jquery.metisMenu.js"></script>
<!-- Custom Js -->
<script src="/static/assets/js/custom-scripts.js"></script>

<!-- jquery vendor -->
<script src="/static/assets/js/jquery.min.js"></script>
<script src="/static/assets/js/bootstrap.min.js"></script>
<!-- bootstrap -->
<!-- JS Grid Scripts Start-->
<script src="/static/assets/js/jsgrid/db.js"></script>
<script src="/static/assets/js/jsgrid/jsgrid.core.js"></script>
<script src="/static/assets/js/jsgrid/jsgrid.load-indicator.js"></script>
<script src="/static/assets/js/jsgrid/jsgrid.load-strategies.js"></script>
<script src="/static/assets/js/jsgrid/jsgrid.sort-strategies.js"></script>
<script src="/static/assets/js/jsgrid/jsgrid.field.js"></script>
<script src="/static/assets/js/jsgrid/fields/jsgrid.field.text.js"></script>
<script src="/static/assets/js/jsgrid/fields/jsgrid.field.number.js"></script>
<script src="/static/assets/js/jsgrid/fields/jsgrid.field.select.js"></script>
<script src="/static/assets/js/jsgrid/fields/jsgrid.field.checkbox.js"></script>
<script src="/static/assets/js/jsgrid/fields/jsgrid.field.control.js"></script>
<script src="/static/assets/js/jsgrid/jsgrid-init.js"></script>
<script type="text/javascript">
    $(function () {
            $('#testTable').bootstrapTable('refresh', { url:  });
            $('#searchbutton').click(function () {
                var busNo = $('#busNo').val();
                var orderId = $('#orderId').val();
                $('#testTable').bootstrapTable('refresh', { url: });
            });
            $('#resetbutton').click(function() {
                $('#busNo').val('');
                $('#orderId').val('');
                $('#testTable').bootstrapTable('refresh', { url:  });
            });
        });
</script>

</body>

</html>